package com.nnnu.wsnackshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nnnu.wsnackshop.pojo.entity.UserCoupons;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户优惠券 Mapper 接口
 * </p>
 *
 * @author zk
 * @since 2025-06-24
 */
@Mapper
public interface UserCouponsMapper extends BaseMapper<UserCoupons> {

    /**
     * 获取用户可用优惠券
     *
     * @param userId 用户ID
     * @return 用户可用优惠券列表
     */
    List<UserCoupons> getUserAvailableCoupons(@Param("userId") Integer userId);
}